<?php
/*echo $_GET['element'];*/


/*
error_reporting(E_ALL);
$array = array('abc' => 'def');
echo $array['abc'].$array['def'];*/


/*$s='12345';
$s[$s[1]]=2;
echo $s;*/


/*$a=date("Y-m-d H:i:s" , strtotime("-1 day"));
echo strrev($a);*/




$conn01 = mysql_connect("localhost",'root','');//root是帐号,123456是密码
$mycon=mysql_select_db('testdatabase',$conn01); //testdatabase是mysql数据库名
if($mycon){
echo("数据库连接成功");
}else{
echo("数据库连接失败");
}
 
$sql= “insert into twenty_million (value) values”;
for($i=0;$i<2000000;$i++){
$sql.=”('50′),”;
};
$sql = substr($sql,0,strlen($sql)-1);
$connect_mysql->query($sql);

}
?>